package com.blocks.generator.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author <a href="mailto:idler41@163.com">linfuxin</a> created by 2022-07-10 15:55:38
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ColumnModel {

    /**
     * 字段是否为主键
     */
    private boolean identity;

    /**
     * 表列名 如: create_time
     */
    private String columnName;

    /**
     * 列备注 如: 创建时间
     */
    private String comment;

    /**
     * java类型 如: Date
     */
    private String propertyClass;

    /**
     * java类名全称 如: java.util.Date
     * @see Class#getName()
     */
    private String propertyClassName;

    /**
     * 对象名称 如: createTime
     */
    private String propertyName;

    /**
     * jdbc数据类型 DATETIME
     */
    private String jdbcType;

    /**
     * 如 #{createTime,jdbcType=DATETIME}
     */
    private String propertyNameAndJdbcType;
}
